From: Robert Lipe Date: Tue, 19 Jul 2016 19:13:35 +0000 (-0500) Subject: Issue error if interpolate filter has no routes or tracks to operate on. X-Git-Tag: archive/raspbian/1.10.0+ds-2+rpi1~1^2~12^2~9^2~18 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=26cc1acbabc6e1485eb7dc9341b0242da15b2d6e;p=gpsbabel.git Issue error if interpolate filter has no routes or tracks to operate on. --- diff --git a/interpolate.cc b/interpolate.cc index 4c39be8c2..646c37476 100644 --- a/interpolate.cc +++ b/interpolate.cc @@ -74,6 +74,11 @@ interpfilt_process(void) track_backup(&count, &backuproute); route_flush_all_tracks(); } + + if (count == 0) { + fatal(MYNAME ": Found no routes or tracks to operate on.\n"); + } + QUEUE_FOR_EACH(backuproute, elem, tmp) { route_head* rte_old = (route_head*)elem;